package com.litesuits.sdk.listener;

import android.app.Activity;
import com.litesuits.http.exception.HttpException;
import com.litesuits.http.response.Response;
import com.litesuits.sdk.LiteSdk;

public abstract class AbsDialogHttpListener<T> extends AbsActivityHttpListener<T> {
    public AbsDialogHttpListener(Activity activity) {
        super(activity);
    }

    @Override
    public void onFailure(HttpException e, Response<T> response) {
        LiteSdk.getInstance().getHttpExceptionHandler().via(linkedActivity).handleException(e);
    }
}